import request from '@/utils/request'

// 获取审批详情
export function getApprovalDetail(query) {
  return request({
    url: '/flowable/instance/get-approval-detail',
    method: 'get',
    params: query
  })
}


export function getProcessInstanceBpmnModelView(id){
  return request({
    url: '/flowable/instance/get-bpmn-model-view?id=' + id,
    method: 'get',
   
  })
}


export   function getProcessInstanceManagerPage (params) {
  return  request({ url: '/flowable/instance/manager-page', 
                    method: 'get',
                    params })
}

export  function cancelProcessInstanceByStartUser(data) {
  return request({
    url: '/flowable/instance/cancel-by-start-user',
    method: 'delete',
    data: data
  })
}